﻿//namespace UIOC.Editor {

//    public readonly struct AssemblyDefinitionName {

//        public static AssemblyDefinitionName Empty = new();

//        public string Value { get; init; }

//        public override bool Equals(object obj) {
//            if (obj is AssemblyDefinitionName other) {
//                return other.Value == Value;
//            }
//            return false;
//        }

//        public override int GetHashCode() => Value == null ? 0 : Value.GetHashCode();

//        public override string ToString() => Value == null ? "null" : Value;

//        public static bool operator ==(AssemblyDefinitionName left, AssemblyDefinitionName right) => left.Equals(right);

//        public static bool operator !=(AssemblyDefinitionName left, AssemblyDefinitionName right) => !left.Equals(right);

//        public bool IsUnityRegistry() => (Value?.StartsWith("Unity.") == true) || (Value?.StartsWith("UnityEngine.") == true);
//    }
//}